package com.syni.mdd.yhd.common.all.controller.api;

import com.syni.mdd.sjb.common.component.utils.common.annotations.CheckParams;
import com.syni.mdd.yhd.common.all.service.BmsBusinessFlowService;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @className ApiUserController
 * @description TOO
 * @Author cfx
 * @DATE 2019/7/12 18:36
 * @VERSION 1.0
 **/
@RestController
@RequestMapping("/apiBusinessFlow")
public class ApiBusinessFlowController {

    @Autowired
    BmsBusinessFlowService bmsBusinessFlowService;

    @PostMapping("/getLastPdf")
    @CheckParams(params = {"flowId"})
    public Map<String,Object> getLastPdf(@RequestBody ParamsMap paramsMap){
        return bmsBusinessFlowService.getLastPdf(paramsMap);
    }

}
